package com.yuan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient//标注为Eureka客户端
@EnableFeignClients//负载均衡
@EnableHystrix//管理熔断
public class SpringCloudConsumerApplication {

    public static void main(String[] args) {
        //启动类
        SpringApplication.run(SpringCloudConsumerApplication.class, args);
    }

}
